package com.maxlen.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.common.utils.PageUtils;
import com.maxlen.goods.entity.AttrGroupEntity;
import com.maxlen.goods.entity.vo.AttrGroupVO;
import com.maxlen.goods.entity.dto.AttrGroupDTO;
import com.maxlen.goods.entity.dto.AttrGroupWithAttrsDTO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 09:43:29
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long categoryId);

    void add(AttrGroupVO attrGroupVO);

    void updateByIdDto(AttrGroupVO attrGroupVO);

    AttrGroupDTO getDetailById(Long attrGroupId);

    void removeDetail(List<Long> attrGroupIds);

    List<AttrGroupWithAttrsDTO> getAttrGroupWithAttrsByCategoryId(Long categoryId);
}

